//导入 express
const express = require('express');
const checkVipMiddleware = require('../middlewares/checkVipMiddleware');
//创建路由器对象
const router = express.Router();

//路由规则
router.get('/admin', checkVipMiddleware, (req, res) => {
  res.send('后台首页');
});

router.get('/setting',checkVipMiddleware, (req, res) => {
  res.send('后台设置')
});

//暴露
module.exports = router;